package com.webside.front.common.mapper;

import java.util.List;
import java.util.Map;

import com.webside.front.common.model.RComment;

public interface RCommentMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(RComment record);

    
    //匿名点评
    int insertSelective(RComment record);

    RComment selectByPrimaryKey(Integer id);
    //查询子评论
    List<RComment> selectByVideo(Integer videoId);
    
    int updateByPrimaryKeySelective(RComment record);
    
    int updateByPrimaryKey(RComment record);
    //详情页面 查询父评论
    List<RComment> selectRCommentByBVideoid(Map<String,Object> condition) throws Exception;
    //详情页面 查询回复评论
    List<RComment> selectReplyCommentByParentid(Map<String,Object> condition) throws Exception;
    //获取父级评论数
    int selectCommentCount(Map<String,Object> condition);
    //获取子集评论数
    int selectReplyCount(Map<String,Object> condition);
    //增加父评论数
    int addCount(RComment record);
    //插入点赞
    int insertLike(Integer seriesId, Integer videoId);
}